#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
	int i, k, j;
	int A[3][3] = { 1,2,3,4,5,6,7,8,9 };
	int B[3][3] = { 9,8,7,6,5,4,3,2,1 };
	int C[3][3] = { 0,0,0,0,0,0,0,0,0 };

	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 3; j++)
		{
			for (k = 0; k < 3; k++)
			{
				C[i][j] = C[i][j] + A[i][k] * B[k][j];
			}
		}
	}
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 3; j++)
		{
			printf("%d ", C[i][j]);
		}
		printf("\n");
	}
	return 0;
}